<template>
  <div>
    <h1 align="center">登录页面</h1>
    <p align="center">
      <el-button type="primary" size="mini" plain="true" @click="doLogin">登录</el-button>
    </p>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  mounted(){
    console.log(this.$route)
    console.log(this.$router)
  },
  methods: {
    generateRoutes() {
      this.$router.addRoute("", {
        path: "*",
        name: "404",
        component: () => import("@/views/error/404.vue")
      })
    },
    doLogin() {
      this.$router.push({path: "/pdfView",query:{ name: 'zs',age: 18}});
    }
  }
}
</script>

<style lang="scss" scoped></style>